package com.cw2.behavioral.command;

/**
 * 命令模式
 */
public class MainTest {
    public static void main(String[] args) {
        // 简单命令模式
        LeiReceiver leiReceiver = new LeiReceiver();
        leiReceiver.travel();

        System.out.println("---------------------");

        TeacherTongInvoker teacherTongInvoker = new TeacherTongInvoker();
        teacherTongInvoker.setCommand(new OnlineCommand());
//        teacherTongInvoker.setCommand(new WuHanTravelCommand());
        teacherTongInvoker.call();
    }
}
